import request from '@/utils/request.js'

//获取所有排课信息
export const getAllManage = (queryParams)=>{
    return request.get('/teach-system/admin/getAllArrange',{params:queryParams});
}

//添加排课信息
export const addManageUp = (addmanage)=>{
    return request.post('/teach-system/admin/arrange-course',addmanage);
}

//删除排课信息
export const deleteManage = (id)=>{
    return request.delete('/teach-system/admin/cancel-course/'+id);
}

//管理员修改排课信息
export const updateManageInfo = (manage)=>{
    return request.put('/teach-system/admin/updateManage',manage);
}

//管理员根据id获取排课信息
export const getDetailManageInfo = (id)=>{
    return request.get('/teach-system/admin/getDetailManage/'+id);
}